package com.project.app.server.monitor;

import com.project.common.core.controller.BaseController;
import com.project.common.core.page.TableDataInfo;
import com.project.server.domain.garden.TGardenSupervisory;
import com.project.server.service.garden.ITGardenSupervisoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Sweey Zhang
 * @Description 监控
 * @Date 2021/8/12 16:52
 */
@RestController
@RequestMapping("/app/server/monitor")
public class ATMonitorController extends BaseController {
    @Resource
    private ITGardenSupervisoryService tGardenSupervisoryService;

    /**
     * @param tGardenSupervisory
     * @Description 查询园区监控点位列表
     * @author Sweey Zhang
     * @Date 2021/8/12 16:55
     */
    @GetMapping("/list")
    public TableDataInfo list(TGardenSupervisory tGardenSupervisory) {
        startPage();
        List<TGardenSupervisory> list = tGardenSupervisoryService.selectTGardenSupervisoryList(tGardenSupervisory);
        return getDataTable(list);
    }
}
